import edu.ucdavis.jr.*;
import edu.ucdavis.jr.jrx.*;

public class JrExample {

	private static final int[] A = { 8, 4, 11, 19 };
	private static final int[] B = { 14, 17, 9, 3 };
	private static final int N = A.length;

	 private static process p1{
		 int sum = 0;
		 for (int i=0; i<N; i++) {
			 sum += A[i];
		 }
		 System.out.println("sum of A = " + sum);
	 }
	 
	 private static process p2{
		 int sum = 0;
		 for (int i=0; i<N; i++) {
			 sum += A[i] * B[i];
		 }
		 System.out.println("inner product of A and B = " + sum);
	 }

	 public static void main( String[] args ){
		 
	 }
}
